let config = {
  timeout: 30000
}
// 接口自动区分
const host = window.location.host
if (host === 'm.hfhomes.cn') {//生产
  config.api = 'https://mall-api.hfhomes.cn/'
  config.linkApi = 'https://m.hfhomes.cn/'
  config.fullUrlPath = 'https://m.hfhomes.cn/html/home/#/'
  config.imgServerUrl = 'https://img[0].hfhomes.cn/'
  config.staticUrl = 'https://static.hfhomes.cn'
} else if (host === 'm.heyoucloud.com') {//预生产
  config.api = 'https://mall-api.heyoucloud.com/'
  config.linkApi = 'https://m.heyoucloud.com/'
  config.fullUrlPath = 'https://m.heyoucloud.com/html/home/#/'
  config.imgServerUrl = 'https://img[0].hfhomes.cn/'
  config.staticUrl = 'https://static.heyoucloud.com'
} else if (host === 'm.fybanks.cn') {//测试1
  config.api = 'https://mall-api.fybanks.cn/'
  config.linkApi = 'https://m.fybanks.cn/'
  config.fullUrlPath = 'https://m.fybanks.cn/html/home/#/'
  config.imgServerUrl = 'https://img1.heyoucloud.com/'
  config.staticUrl = 'https://static.fybanks.cn'
} else if (host === 'm.9yuekj.com') {//测试2
  config.api = 'https://mall-api.9yuekj.com/'
  config.linkApi = 'https://m.9yuekj.com/'
  config.fullUrlPath = 'https://m.9yuekj.com/html/home/#/'
  config.imgServerUrl = 'https://img1.heyoucloud.com/'
  config.staticUrl = 'https://static.9yuekj.com'
} else if (host === 'm.hfjyuan.com') {//测试3
  config.api = 'https://mall-api.hfjyuan.com/'
  config.linkApi = 'https://m.hfjyuan.com/'
  config.fullUrlPath = 'https://m.hfjyuan.com/html/home/#/'
  config.imgServerUrl = 'https://img1.heyoucloud.com/'
  config.staticUrl = 'https://static.hfjyuan.com'
} else if (host === 'm.ijiuyue.com') {//开发1
  config.api = 'https://mall-api.ijiuyue.com/'
  config.linkApi = 'https://m.ijiuyue.com/'
  config.fullUrlPath = 'https://m.ijiuyue.com/html/home/#/'
  config.imgServerUrl = 'https://img1.heyoucloud.com/'
  config.staticUrl = 'https://static.ijiuyue.com'
} else if (host === 'm.hfqqjia.com') {//开发2
  config.api = 'https://mall-api.hfqqjia.com/'
  config.linkApi = 'https://m.hfqqjia.com/'
  config.fullUrlPath = 'https://m.hfqqjia.com/html/home/#/'
  config.imgServerUrl = 'https://img1.heyoucloud.com/'
  config.staticUrl = 'https://static.hfqqjia.com'
} else if (host === 'm.heimh.com') {//开发3
  config.api = 'https://mall-api.heimh.com/'
  config.linkApi = 'https://m.heimh.com/'
  config.fullUrlPath = 'https://m.heimh.com/html/home/#/'
  config.imgServerUrl = 'https://img1.heyoucloud.com/'
  config.staticUrl = 'https://static.heimh.com'
} else {//本地
  config.api = 'https://mall-api.fybanks.cn/'
  config.linkApi = 'https://m.fybanks.cn/'
  config.fullUrlPath = 'https://m.fybanks.cn/html/home/#/'
  config.imgServerUrl = 'https://img1.heyoucloud.com/'
  config.staticUrl = 'https://static.fybanks.cn'
}
module.exports = config

